<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>仿百度文库在线阅读</title>
<base href="<%=basePath %>">

<script type ="text/javascript"src="FlexPaper/js/jquery.min.js"></script>
<script type ="text/javascript"src="FlexPaper/js/flexpaper.js"></script>
<script type ="text/javascript"src="FlexPaper/js/flexpaper_handlers.js"></script>
</head>

<body>
<div style="position:absolute;left:50px;top:10px;">  
	<div id="documentViewer" class="flexpaper_viewer" style="width:770px;height:500px"></div>
 	<script type="text/javascript">
	$('#documentViewer').FlexPaperViewer({
		config : {

			SWFFile : '<%=request.getAttribute("finalFilePath") %>', // swf路径
			jsDirectory : 'FlexPaper/js/', // js目录
			cssDirectory : 'FlexPaper/css/', // css目录
			localeDirectory : 'FlexPaper/locale/', // 本地化语言目录

			Scale : 0.6,
			ZoomTransition : 'easeOut',
			ZoomTime : 0.5,
			ZoomInterval : 0.2,
			FitPageOnLoad : false,
			FitWidthOnLoad : true,
			FullScreenAsMaxWindow : false,
			ProgressiveLoading : false,
			MinZoomSize : 0.2,
			MaxZoomSize : 5,
			SearchMatchAll : false,
			InitViewMode : 'Portrait',
			RenderingOrder : 'flash',
			StartAtPage : '',

			ViewModeToolsVisible : true,
			ZoomToolsVisible : true,
			NavToolsVisible : true,
			CursorToolsVisible : true,
			SearchToolsVisible : true,
			WMode : 'window',
			localeChain : 'zh_CN'
		}
	});
	</script>
</div>
</body>
</html>